package cn.usian.dao;

import cn.usian.entity.DTO;
import cn.usian.entity.Dish;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface DishMapper extends BaseMapper<Dish> {

    Page<DTO> findPage(Page<DTO> page1,@Param("name") String name);

    @Select("select id from dish where name=#{name}")
    Long selectByName(String name);
}
